package week_07.Joseph_Ring;

import week_07.CicleLinklList;
import week_07.LinkListQueue;

public class Joseph_Ring {
    public static void main(String[] args) {
        CicleLinklList<Integer> link=new CicleLinklList<>();
        link.insert(1);
        link.insert(2);
        link.insert(3);
        link.insert(4);
        link.insert(5);
        link.insert(6);
        link.josephRing(1,5);
        for (int i = 0; i < link.length(); i++) {
            System.out.println(link.get(i));
        }
    }
}
